package cn.cs.mapper;

import cn.cs.pojo.CsFactory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CsFactoryMapper {

    public CsFactory getCsFactoryById(@Param(value = "id") String id) throws Exception;

    public CsFactory getCsFactoryByIdName(@Param(value = "factory_id") String factory_id, @Param(value = "factory_name") String factory_name) throws Exception;

    public CsFactory getCsFactoryByUserName(@Param(value = "factoryCode") String username) throws Exception;

    public List<CsFactory> getCsFactoryListByMap(Map<String, Object> param) throws Exception;

    public Integer getCsFactoryCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertCsFactory(CsFactory csFactory) throws Exception;

    public Integer updateCsFactory(CsFactory csFactory) throws Exception;

    public Integer deleteCsFactoryById(@Param(value = "id") String id) throws Exception;

}
